//
//  JobCollectionCell.m
//  Job
//
//  Created by 如此的你 on 2018/8/23.
//  Copyright © 2018年 桑赐相. All rights reserved.
//

#import "JobCollectionCell.h"

@interface JobCollectionCell()
@property (weak, nonatomic) IBOutlet UILabel *jobTitle;
@property (weak, nonatomic) IBOutlet UILabel *jobPlace;
@property (weak, nonatomic) IBOutlet UILabel *salary;



@end

@implementation JobCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setJob:(JobModel *)job {
    _job = job;
    self.jobTitle.text = job.title;
    self.jobPlace.text = job.location == nil ? @"未定" : job.location;
    self.salary.text = job.money;
}




@end
